﻿using FastReport;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CJGL
{
    public partial class Form4 : Form
    {
        public Form4()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (this.textBox1.Text != "") { 
            string mes1 =this.textBox1.Text;
            Report report1 = new Report();
            report1.Load(@"print1.frx");
            // report1.SetParameterValue("par1", mes);
            report1.SetParameterValue("date", mes1);
            report1.PrintSettings.ShowDialog = false;
            report1.PrintSettings.Printer = ClsParmart.cboprint1;
            report1.Print();
            }
            else
            {
                MessageBox.Show("请输入箱码");
            }
        }
    }
}
